<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 1160px;
            height: 600px;
            margin: auto;
            border-radius: 8% 0;
            text-align: center;
            background-color: #f4f5f7;
        }
        .db{
            padding: 0 50px;
            width: 1060px;
            height: 60px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .lb{
            width: 1100px;
            height: 540px;
            margin:0 78px 0 22px; 
        }
        ul{
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            transition: all 0.3s;
        }
        .txt h5{
            height: 10px;
        }
        .txt div{
            height: 10px;
        }
        li{
            list-style: none;
            width: 200px;
            height: 250px;
            border-radius: 0 0 8px 8px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            background-color: #fff;
        }
        li img{
            width: 200px;
        }
        li:hover{
            transform: translateY(-10px);
            cursor: pointer;
        }
        .txt{
            height: 110px;
        }
        .txt div span{
            color: orange;
        }
    </style>
</head>
<body>
    <script>
        document.write(`
        <div class="box">
            <div class="db">
                <span class="t1">吴佳琪</span>
                <span class="t2">查看全部</span>
            </div>
            <div class="lb">
                <ul>`)
        
        let utitle=[
            'Think PHP 5.0 博客系统实战项目演练',
            'Android 网络动态图片加载实战',
            'Angular2 大前端商城实战项目演练',
            'Android APP 实战项目演练',
            'UGUI 源码深度分析案例',
            'Kami2首页界面切换效果实战演练',
            'UNITY 从入门到精通实战案例',
            'Cocos 深度学习你不会错过的实战'
        ]
        let num=[1125,357,22250,389,124,432,888,590]
        for(let i=0;i<8;i++){
            document.write(`
                    <li>
                        <img src="../渲染列表图片/images/course0${i+1}.png" alt="这是一张图片">
                        <div class="txt">
                            <h5>${utitle[i]}</h5>
                            <div><span>高级</span>·<span>${num[i]}</span>人在学习</div>
                        </div>
                    </li>`)
        }

        document.write(`
                </ul>
            </div>
        </div>`)
    </script>        
</body>
</html>